package servlets;

import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class ServletTest extends HttpServlet {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	protected void doGet (HttpServletRequest req,HttpServletResponse res)
					throws ServletException, IOException{
		doPost(req, res);
					}
	
	protected void doPost (HttpServletRequest req,HttpServletResponse res)
			throws ServletException, IOException{
		String mine  = (String) req.getParameter("TWAT");
		PrintWriter out = res.getWriter();
		out.print("This is the response that you get" + mine);
		out.flush();
			}
}